package com.zxy.ziems.server.device.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;
/**
 * 通信通道配置设备
 * @author 10348359
 * @create 2024-03-28 23:41
 */
@TableName("t_channel_device")
public class ChannelDeviceEntity extends BaseEntity {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 通信通道ID
     */
    private String channelId;


    /**
     * 高级配置 根据不同的协议自定义配置，比如 modbus配置的从站号 {"station": 1}
     */
    private String advanced;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getAdvanced() {
        return advanced;
    }

    public void setAdvanced(String advanced) {
        this.advanced = advanced;
    }
}
